#include <stdio.h>
#include <ctype.h>
int read_line(char str[], int n)
{
    int ch, i = 0;
    while((ch = getchar()) != '\n' && ch != EOF)
        if (i < n)
            str[i++] = ch;
    str[i] = '\0';
    return i;
}
int read_linea(char str[], int n)
{
    int ch, i = 0;
    while((ch = getchar()) == ' ')
        ;
    do
    {
        if (i < n && ch == '\n')
            break;
        str[i++] = ch;
    } while ((ch = getchar()) != '\n' && ch != EOF);
    str[i] = '\0';
    return i;
}
int read_lineb(char str[], int n)
{
    int ch, i = 0;
    while(!isspace( (ch = getchar()) ) && ch != EOF)
        if (i < n)
            str[i++] = ch;
    str[i] = '\0';
    return i;
}
int read_linec(char str[], int n)
{
    int ch, i = 0;
    while((ch = getchar()) != '\n' && ch != EOF)
        if (i < n)
            str[i++] = ch;
    if (i < n && ch == '\n')
        str[i++] = ch;
    str[i] = '\0';
    return i;
}
int read_lined(char str[], int n)
{
    int ch, i = 0;
    while((ch = getchar()) != '\n' && ch != EOF)
        if (i < n)
            str[i++] = ch;
        else
            break;
    str[i] = '\0';
    return i;
}
int main(void)
{
    char str[100];
    read_line(str, 100);
    puts(str);
    read_linea(str, 100);
    puts(str);
    read_lineb(str, 100);
    puts(str);
    return 0;
}
